Skip to content

pkp/pkp-lib#10263 Relax editing metadata on published/posted materials #1943

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 1, 2025

Conversation

Hafsa-Naeem
Copy link
Contributor

$this->setReadOnly(true);
$userRoles = $this->getAuthorizedContextObject(Application::ASSOC_TYPE_USER_ROLES);
if (
!in_array(Role::ROLE_ID_SITE_ADMIN, $userRoles)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can do it here and in other places in one check, e.g, array_intersect?

@Hafsa-Naeem Hafsa-Naeem force-pushed the i10263-stable_3_5_0-fix branch from 99e1525 to 4d661a1 Compare April 25, 2025 20:31
@Hafsa-Naeem Hafsa-Naeem force-pushed the i10263-stable_3_5_0-fix branch from a2a4284 to 74b22e9 Compare April 30, 2025 18:53
@Vitaliy-1 Vitaliy-1 merged commit 741edd9 into pkp:stable-3_5_0 May 1, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants